From b379ca3e028bc9059c966afbcb1a5a7e70b9c147 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 25 Dec 2017 11:27:16 -0500 Subject: [PATCH] check button: Fix inconsistent state This has been broken since the inconsistent state was moved here in 2aea8dfee97b. --- gtk/gtkcheckbutton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index d67b686c94..c15881eb7e 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -562,8 +562,10 @@ gtk_check_button_set_inconsistent (GtkCheckButton *check_button, g_return_if_fail (GTK_IS_CHECK_BUTTON (check_button)); inconsistent = !!inconsistent; - if (inconsistent != priv->inconsistent) + if (priv->inconsistent != inconsistent) { + priv->inconsistent = inconsistent; + if (inconsistent) gtk_widget_set_state_flags (GTK_WIDGET (check_button), GTK_STATE_FLAG_INCONSISTENT, FALSE); else -- 2.30.2